<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/30
 * Time: 13:01
 */

namespace app\api\controller;


use app\common\controller\Api;
use app\common\model\Config;


class System extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = '*';

    public function _initialize()
    {
        parent::_initialize();
    }
    public function rule()
    {
        $rule = Config::where('name','rule')->where('group','sysrule')->value('value');
        $this->success('成功',$rule);
    }
    public function kfqq()
    {
        $kfqq = Config::where('name','KFQQ')->where('group','basic')->value('value');
        $this->success('成功',$kfqq);
    }
    public function live800()
    {
        $live800= Config::where('name','live800')->where('group','basic')->value('value');
        $this->success('成功',$live800);
    }
}